package com.syni.mdd.sjb.common.datatreaure.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.syni.mdd.sjb.common.component.mybatis.dxshapp.entity.DxshAppUserNewsSwitch;
import com.syni.mdd.sjb.common.datatreaure.entity.vo.rq.BaseRqVo;
import com.syni.mdd.sjb.common.datatreaure.entity.vo.rq.dxshAppNews.SettingStatusVo;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * <p>
 * 电享生活app消息表 服务类
 * </p>
 *
 * @author lcc
 * @since 2020-05-14
 */
public interface DxshAppUserNewsSwitchService extends IService<DxshAppUserNewsSwitch> {

    Map<String, Object> set(BaseRqVo baseRqVo);

    Map<String, Object> openClose(Integer id, Integer isOpen);

    Set<Integer> getNewsSwitchByUserId(Integer userId);

    Map<String,Object> getMyMessageSettings(Integer userId);

    List<DxshAppUserNewsSwitch> getChildType(Integer firstId);

    Map<String,Object> changeSettingStatus(SettingStatusVo settingStatusVo);

    DxshAppUserNewsSwitch findById(Integer id);

    Set<Integer> getNewsSwitchByUserId_v2(Integer userId,Integer messageType,Integer messageSecondType);
}
